/*
 * Description: 系统岗位调用后台接口JS
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Dongxu.Ni
 * Date: 2020/03/21 05:53
 */

import { httpPost } from '../../utils/axios-utils'

export function postQueryBySession(authConfig) {
  return httpPost('/smart-cost/sys/post/queryBySession', null, authConfig)
}

export function postListSubordinate(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/listSubordinate', obj, authConfig)
}

export function postListAllSimple(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/listAllSimple', obj, authConfig)
}

export function roleListMappingRole(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/listMappingRole', obj, authConfig)
}

export function postPageListSubordinate(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/pageListSubordinate', obj, authConfig)
}

export function postAdd(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/add', obj, authConfig)
}

export function postEdit(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/edit', obj, authConfig)
}

export function postDelete(obj, authConfig) {
  return httpPost('/smart-cost/sys/post/delete', obj, authConfig)
}
